package com.shsxt.vo;
import java.text.SimpleDateFormat;

import java.util.Date;

/**
 * @author lxc2
 *
 */
public class OrderQuery {
	private String orderNumber;
	private String type;
	private String orderTime;
	private String address;
	private String detailAddress;
	private String orderState;
	private String timeSlot;
	
	
	@Override
	public String toString() {
		return "OrderQuery [orderNumber=" + orderNumber + ", type=" + type + ", orderTime=" + orderTime + ", address="
				+ address + ", detailAddress=" + detailAddress + ", orderState=" + orderState + ", timeSlot=" + timeSlot
				+ "]";
	}
	public OrderQuery() {
		super();
		// TODO Auto-generated constructor stub
	}
	public OrderQuery(String orderNumber, String type, String orderTime, String address, String detailAddress,
			String orderState, String timeSlot) {
		super();
		this.orderNumber = orderNumber;
		this.type = type;
		this.orderTime = orderTime;
		this.address = address;
		this.detailAddress = detailAddress;
		this.orderState = orderState;
		this.timeSlot = timeSlot;
	}
	public String getOrderNumber() {
		return orderNumber;
	}
	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getOrderTime() {
		return orderTime;
	}
	public void setOrderTime(Date orderTime) {
/*		this.orderTime = DateFormat.getDateInstance(DateFormat.FULL).format(orderTime);  
*/		SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd EEEE");

		this.orderTime =  format.format(orderTime);

	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getDetailAddress() {
		return detailAddress;
	}
	public void setDetailAddress(String detailAddress) {
		this.detailAddress = detailAddress;
	}
	public String getOrderState() {
		return orderState;
	}
	public void setOrderState(String orderState) {
		this.orderState = orderState;
	}
	public String getTimeSlot() {
		return timeSlot;
	}
	public void setTimeSlot(String timeSlot) {
		this.timeSlot = timeSlot;
	}
	
}
